package com.tosh.model;

import java.util.HashMap;
import java.util.Map;

/**
 * User: arsentyev
 * Date: 04.10.12
 */
public class Match {
    private String member1;
    private String member2;
    private Map<Factor, Float> factors = new HashMap<Factor, Float>();

    public String getMember1() {
        return member1;
    }

    public void setMember1(String member1) {
        this.member1 = member1;
    }

    public String getMember2() {
        return member2;
    }

    public void setMember2(String member2) {
        this.member2 = member2;
    }

    public Map<Factor, Float> getFactors() {
        return factors;
    }

    public void addFactor(Factor factor, float value) {
        this.factors.put(factor, value);
    }

    public float getFactor(Factor factor) {
        Float f = this.factors.get(factor);
        return f == null ? 0 : f;
    }
}